#ifndef PREFORKSERVER_H
#define PREFORKSERVER_H

#include "shmmanager.h"
#include "pidsboard.h"


class PreForkServer
{
public:
	PreForkServer(int key, unsigned int aiSubprocnum);
	~PreForkServer();
	int Run();
	int Init();
	
protected:
	virtual void ChildRun() = 0;
	virtual void BeforeChildRun() = 0;
	virtual void BeforeRun(); 		
public:
	static PidsBoadManager * m_ptPidsBoadManager;

protected:
	unsigned int m_iSubprocnum;
};

#endif
